<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Bbs_Model extends CI_Model {
	private $db2;

	public function __construct() {
		parent::__construct();
		$this->db2 = $this->load->database("localhost_bbs", TRUE);
	}

	public function selectMember(){
		$this->db2->select('*');
		$query = $this->db2->get('common_member');
		return $query->row_array();
	}

	public function insert($table, $data){
		$this->db2->insert($table, $data);
		return $this->db2->insert_id();
	}


}